from socket import *    

client = socket(AF_INET,SOCK_STREAM)
client.connect(('127.0.0.1', 8000))

while True:
    msg = input('>>:')
    client.send(msg.encode())
    print('send to server: ', msg)
    data = client.recv(1024)
    print('recieve data from server: ', data)
